jQuery(document).ready(function() {
	//创建JQGRID表格
	
	var grid = $("#table1").ligerGrid({
        columns: [
                  { display: '改签单号', name: 'socode', width: 200 },
                  { display: '销售编号', name: 'oricode', width: 200 },
                  { display: '单据状态', name: 'billstatus', width: 150,
                	  render: function (item){
                		  var billStatus=item.billstatus;
                		  if(billStatus=="3"){
                			  return "草稿";
                		  }if(billStatus=="4"){
                			  return "审核中";
                		  }if(billStatus=="5"){
                			  return "审核完成";
                		  }
                	  }},
                  { display: '开单公司', name: 'creategsname', width: 250 },
                  { display: '退货日期', name: 'jhrq', width: 150,
                	  render: function (item){
                		  var cdate=new Date(item.jhrq);
                		  return formatDate(cdate,"yyyy-MM-dd")
                	  }},
                  { display: '备注', name: 'remark', width: 150 }
                      ],  usePager: true,pageSize:30,
                      url : basic_Url+"/list.do",
                      width: "100%", height:"98%", checkbox: false,      
                      onDblClickRow : function (data, rowindex, rowobj){
                    	  edit(data);
                       }
                  });
	$("#pageloading").hide();
});

